<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/oa/include/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<link rel="stylesheet" type="text/css" href="${jsAndCss}/css/style.css" />
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/WdatePicker.css" />
<link rel="stylesheet" type="text/css" href="${jsAndCss}/css/skin_/index.css" />	
<link rel="stylesheet" type="text/css" href="${jsAndCss}/css/skin_/form.css" />
<link href="${jsAndCss}/umeditor/themes/default/_css/umeditor.css"
	type="text/css" rel="stylesheet">
<script type="text/javascript" src="${jsAndCss}/js/jquery.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/global.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/jquery.select.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/WdatePicker.js"></script>
<script type="text/javascript">
	window.UMEDITOR_HOME_URL = 'umeditor/'; // 请换成绝对路径
</script>
<script type="text/javascript" src="${jsAndCss}/js/umeditor.config.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/editor_api.js"></script>
<script type="text/javascript"
	src="${jsAndCss}/umeditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<div id="container">
	<div id="hd">
    </div>
    <div id="bd">
    	<div id="main">
            <ul class="nav-list ue-clear">
            	<li class="nav-item desk">
                	<a href="${ctx}/apply/leaveTaskList">
                        <p class="icon"></p>
                        <p class="title">请假</p>
                    </a>
                </li>
                <li class="nav-item news">
                	<a href="index.html">
                        <p class="icon"></p>
                        <p class="title">报销</p>
                    </a>
                </li>
                
            </ul>
            
            <ul class="content-list">
            	
            </ul>
            <span class="kv-item-tip error">${msg }</span>
         </div>
    </div>
</div>

</body>

<script type="text/javascript">
	var minwidth = 282;
	resizeWidth();
	$(top.window).resize(function(e) {
       resizeWidth();
    });
	$(function() {
		$( ".content-list" ).sortable({
		  revert: true,
		  handle:'h2'
		});
		
	});
	
function resizeWidth (){
	if($('#main').width() / 3 < minwidth){
		$('.content-item').width(($('#main').width() / 2) - 15);
	}else{
		$('.content-item').width(($('#main').width() / 3) - 15);	
	}
		
}

function loadPage(pageUrl){
	$.ajax({
		type : 'post',//请求方式
		url : pageUrl,
		//contentType:'application/json',
		//dataType:'json', //有几种格式 xml html json text 等常用
		//data传值的另外一种方式 form的序列化
		//data: {"roleId":1},//传递给服务器的参数				
		success : function(data) {
			$(".content-list").html(data);
		}
	});
	
}

$(function(){
	/* loadPage('${ctx}/leave/toReLeaveEditPage');
	var msg = '${msg}';
	if(msg!==''){
		alert('${msg}');
	} */
})
</script>
</html>